package com.yjy.fuyao.stu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableFeignClients
@SpringBootApplication
@ComponentScan({"com.yjy.fuyao"})
public class StuApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(StuApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }

//        ConfigurableApplicationContext run = SpringApplication.run(stuApplication.class, args);
//        String[] beanDefinitionNames = run.getBeanDefinitionNames();
//        for (String name:beanDefinitionNames) {
//            System.out.println(name);
//        }
    }
}
